package me.huangxiang.design_pattern.command;

public class LightOnCommand implements Command {
    private Light light;
    @Override
    public void execute() {
        light.on();
    }

    @Override
    public void undo() {
        //TODO
    }

    public LightOnCommand(Light light) {
        this.light = light;
    }
}
